package com.sip.stream.utils.zfy.yuv;

import android.graphics.ImageFormat;

import com.sip.stream.utils.ImageYUVBean;

public abstract class INV12Changer {
    protected int dataLength;
    protected int height;
    protected int width;

    public abstract byte[] changeToNV12(ImageYUVBean imageYUVBean);

    public INV12Changer(int width, int height) {
        this.width = width;
        this.height = height;
        this.dataLength = ((width * height) * ImageFormat.getBitsPerPixel(35)) / 8;
    }
}
